top">NO FRAMES     SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD
Submit a bug or feature

CredibleXML is a trademark or registered trademark of Crediware L.L.C. in the US and other countries.
Copyright 2001-2002 Crediware L.L.C. All Rights Reserved.
DataField (CredibleXML 1.5 Base Framework Specification)
CredibleXML
v1.5

com.crediware.crediblexml.coredef
Class DataField

java.lang.Object
  |
  +--com.crediware.crediblexml.coredef.DataElement
        |
        +--com.crediware.crediblexml.coredef.DataField
All Implemented Interfaces:
IXMLPersistable
Direct Known Subclasses:
DataConstant, DataLayoutField

public abstract class DataField
extends DataElement

Copyright (c) 2001-2002 Crediware LLC. Purpose: This class is a base class incapsulating atomic data element behavior for corresponding document elements defined in the GUI. Returned by data accessor method generated by GUI tool. The abstract class incapsulating atomic data element behavior The sub-classes are DataConstant (representing constant) and DataLayoutField (representing field)


Constructor Summary
DataField(DataSegment container, MetaData metaData, IExternalDataProvider dataProvider, java.lang.String value)
          constructor creates data element with specified parameters
 
Method Summary
protected  org.xml.sax.Attributes getAttributesForElement()
          get the attributes when saving this fragment to XML as a separate element by default returns empty attribute
 java.lang.String getFormattedValue()
          get formatted value of the field
 java.lang.String getLexicalValue(boolean formatted)
          get lexical value of the field: how it'll be represented in XML
 java.lang.String getValue()
          get value of the field
protected abstract  int getXMLPresentmentType()
          Get XML Presentment Type
 boolean isElement()
          Should it be save as an element or an atrribute
protected  void populateDataForElement(org.xml.sax.ContentHandler handler, org.xml.sax.ext.LexicalHandler lexHandler, boolean formatted)
          populate data for element
 void saveFragmentAsAttribute(org.xml.sax.helpers.AttributesImpl attr, boolean formatted)
          save the data of this fragment to XML as an attribute of the container element
 void saveFragmentAsElement(org.xml.sax.ContentHandler handler, org.xml.sax.ext.LexicalHandler lexHandler, boolean formatted)
          save the data of this fragment to XML as a separate element
 void setValue(java.lang.String value)
          set value of the field
 java.lang.String toString()
          convert to string
 
Methods inherited from class com.crediware.crediblexml.coredef.DataElement
getDataProvider, getEmptyAttribute, getMetaData, getName, getParent, isVisibleInXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataField

public DataField(DataSegment container,
                 MetaData metaData,
                 IExternalDataProvider dataProvider,
                 java.lang.String value)
constructor creates data element with specified parameters

Method Detail

getValue

public java.lang.String getValue()
get value of the field

Returns:
String value

setValue

public void setValue(java.lang.String value)
set value of the field


getLexicalValue

public java.lang.String getLexicalValue(boolean formatted)
get lexical value of the field: how it'll be represented in XML

Returns:
String value

getFormattedValue

<